﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace RiskAlert_Entity
{
    public class Entity
    {
        
    }
    public interface IPrimaryKey
    {
        string GetPrimaryKeyProp();
        string GetPrimaryKeyValue();
    }
    public class Item : IPrimaryKey
    {
        private string itemId;
        private string itemName;
        private string itemPos;
        private string riskType;
        private string industryType;
        private string itemDesc;
        private string itemTip;
        public string GetPrimaryKeyProp() => "ItemId";
        public string GetPrimaryKeyValue() => ItemId;
        
        public Item() { }
        

        public string ItemId
        {
            get;
            set;
        }
        public string ItemName
        {
            get;
            set;
        }
        public string ItemPos
        {
            get;
            set;
        }
        public string RiskType
        {
            get;
            set;
        }
        
        public string IndustryType
        {
            get;
            set;
        }
        public string ItemDesc
        {
            get;
            set;
        }
        public string ItemTip
        {
            get;
            set;
        }
    }
    public class Evidence : IPrimaryKey
    {
        public string item_name;
        public int evidence_count;
        public string evidence_str;
        private string evidenceId;
        private string riskType;
        private string occurPos;
        private string evidenceStatu;
        private string evidenceType;
        private string evidencePath;
        private string? evidenceDesc;
        private string? evidenceTip;
        public static List<string> allowEvidenceType = new List<string>() { "video", "image", "audio", "text", "website" };

        public Evidence() { }
        public string GetPrimaryKeyProp() => "EvidenceId";
        public string GetPrimaryKeyValue() => EvidenceId;
        public string EvidenceId
        {
            get;
            set;
        }
        public string RiskType
        {
            get;
            set;
        }
        public string OccurPos
        {
            get;
            set;
        }
        public string EvidenceStatu
        {
            get;
            set;
        }
        public string EvidenceType
        {
            get;
            set;
        }
        
        public string EvidencePath
        {
            get;
            set;
        }
        public string EvidenceDesc
        {
            get;
            set;
        }
        public string EvidenceTip
        {
            get;
            set;
        }

        
    }

}
